package com.atguigu.srb.sms.client;

import com.atguigu.srb.sms.client.fallback.CoreUserInfoClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lupengning
 * @version 1.0
 * @description:
 * @date 2021/6/10 23:00
 */
@FeignClient(value = "service-core",fallback = CoreUserInfoClientFallBack.class)
public interface CoreUserInfoClient {

  /**
   * 手机号码是否已经被注册
   * @param mobile
   * @return
   */
  @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
  public boolean checkMobile(@PathVariable String mobile);
}
